package com.spring.starter;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * @program week05
 * @description: main
 * @author: chanzhugang
 * @create: 2021/04/18 19:05
 */
@SpringBootApplication
public class StudentApplicaton {

    public static void main(String[] args) {
        SpringApplication.run(StudentApplicaton.class, args);
    }

    @Autowired
    private Student student;


    @Bean
    public void printInfo() {
        System.out.println(student.getName());
    }
}